package com.maiji.cloud.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.entities.shopingmall.DownPriceGoodsLog;

@Mapper
public interface DownPriceLogMapper extends BaseMapper<DownPriceGoodsLog>{
	/**
	 * 
	 * @param uuId
	 * @param userId
	 * @return
	 */
	DownPriceGoodsLog selectOneById(@Param("uuId")String uuId,@Param("userId") String userId);
	/**
	 * 查看该商品是否正在进行砍价
	 * @param userId
	 * @param downPriceManageId
	 * @return
	 */
	DownPriceGoodsLog selectOneByDownPriceManageId(@Param("userId") String userId,@Param("downPriceManageId")String downPriceManageId);
	/**
	 * 获取用户砍价中的商品id
	 * @param uuId
	 * @return
	 */
	List<Map<String,Object>>  downPriceLogByUser(@Param("userId")String uuId,@Param("nowTime")Date nowTime);

}
